package org.nimi317.web_gis.controller;

import cn.dev33.satoken.annotation.SaCheckLogin;
import org.nimi317.web_gis.Enum.ProvinceDataEnum;
import org.nimi317.web_gis.entity.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author thunderobot
 */
@RestController
@RequestMapping("time")
public class TimeController {

    @GetMapping
    @SaCheckLogin
    public R<?> getTime() {
        return R.ok(ProvinceDataEnum.getObject());
    }
}
